$(document).ready(function(){if($(".splash").length&&$(".splash").is(":visible")){$(".wrapper").css({opacity:"0"});$(".splash-arrow").click(function(){$("html,body").animate({scrollTop:$(".splash").height()/2+"px"})})}});$(window).on("scroll",function(){if($(".splash").length&&$(".splash").is(":visible")){$(".wrapper").css({opacity:"0"});var e=$(window).scrollTop();if(e<$(".wrapper").offset().top){var t=$(".splash").height();if(e<t/4)$("html, body").animate({scrollTop:"0px"},400);else{$("html, body").animate({scrollTop:"0px"},400);$(".fade-in").fadeOut(250);$(".splash").slideUp(400,function(){$(this).remove();$(".wrapper").animate({opacity:"1.0"},800)})}}if(e>$(".splash").height()){$(".fade-in").fadeOut(250);$(".splash").slideUp(400,function(){$(this).remove();$(".wrapper").animate({opacity:"1.0"},800)})}}});